From: Carlos Soriano Date: Wed, 21 Jan 2015 16:26:23 +0000 (+0100) Subject: theme: Fix caption border gap X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1783 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fbef56b6026255d7ca7a704f2a913c861c2f88c6;p=gnome-shell.git theme: Fix caption border gap Since widnows decorations with round corners has a special shape, which when scaled we can't match with a simple border-radius. So to prevent to show a gap between the caption border and the caption itself, apply a shadow. --- diff --git a/data/theme/_common.scss b/data/theme/_common.scss index 2c42f1b71..fbaa8000c 100644 --- a/data/theme/_common.scss +++ b/data/theme/_common.scss @@ -944,6 +944,10 @@ StScrollBar { .window-clone-border { border: 4px solid $selected_bg_color; border-radius: 4px; + // For window decorations with round corners we can't match + // the exact shape when the window is scaled. So apply a shadow + // to fix that case + box-shadow: inset 0px 0px 0px 1px $selected_bg_color;; } .window-caption { spacing: 25px; diff --git a/data/theme/gnome-shell-high-contrast.css b/data/theme/gnome-shell-high-contrast.css index 0c21596d9..00203d46d 100644 --- a/data/theme/gnome-shell-high-contrast.css +++ b/data/theme/gnome-shell-high-contrast.css @@ -1200,7 +1200,8 @@ StScrollBar { .window-clone-border { border: 4px solid #215d9c; - border-radius: 4px; } + border-radius: 4px; + box-shadow: inset 0px 0px 0px 1px #215d9c; } .window-caption { spacing: 25px; diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 0a669fefb..d4668dc05 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -1200,7 +1200,8 @@ StScrollBar { .window-clone-border { border: 4px solid #215d9c; - border-radius: 4px; } + border-radius: 4px; + box-shadow: inset 0px 0px 0px 1px #215d9c; } .window-caption { spacing: 25px;